package edu.pitt.cs3530.main;

import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;

import org.xml.sax.SAXException;

import edu.pitt.cs3530.fintests.ApplicationServerTest;
import edu.pitt.cs3530.identifier.HandshakeInfo;
import edu.pitt.cs3530.misc.UtilizationStatistics;
import edu.pitt.cs3530.threads.CheckUtilizationThread;
import edu.pitt.cs3530.threads.Connector;

public class StartThinClient extends ApplicationServerTest {
	public static void main(String args[]) {
		try {
			buildConfiguration(args[0]);
			UtilizationStatistics.Initialize();
			HandshakeInfo.createHandshake();
			Connector.start();
			new CheckUtilizationThread().start();
			UtilizationStatistics.Initialize();
		} catch (SAXException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ParserConfigurationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
